//
//  appController.h
//  websterEnglish
//
//  Created by Wallace Wu on 09-2-5.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
#import "RetryBlock.h"

@interface appController : NSObject {
    IBOutlet NSTextView *output;
    IBOutlet NSTextView *error;
    
    IBOutlet WebView *webView;
    NSDictionary *vocHongBao;
    BOOL running;
    BOOL flags[10];
    NSMutableArray *retry;
}

+(NSString*)dictPath;
-(IBAction)start:(id)sender;

-(void)retry:(NSNumber *)threadId;
-(void)load:(id)number;
-(void)fetchWord:(NSString*)word inThread:(int)threadId;
@end
